package day11_coll.demo01;

import java.util.ArrayList;
//ArrayList重写了父类Object中的toString方法
public class Test {
    public static void main(String[] args) {
        int [] a={1,2};
        System.out.println(a);
        ArrayList<Integer> b = new ArrayList<>();
        b.add(3);
        b.add(4);
        System.out.println(b);
    }
}
